/*
 * @Author: 清羽
 * @Date: 2022-08-18 08:47:19
 * @LastEditTime: 2022-08-18 10:22:16
 * @LastEditors: you name
 * @Description: 管理员
 */
import request from '@/utils/request'

export function login (data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}

export function getInfo (token) {
  return request({
    url: '/admin/info',
    method: 'get',
    params: { token }
  })
}

export function logout () {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
